#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include"Heap.h"

void test()
{
	int a[] = { 0,1,2,3,4,5,6,7,8,9 };
	Heap HP;
	HeapCreate(&HP, a, 10);
	HeapPrint(&HP);

	HeapPush(&HP, 10);
	HeapPrint(&HP);

	HeapPop(&HP);
	HeapPrint(&HP);

	printf("%d", HeapTop(&HP));
	HeapDestory(&HP);
}
int main()
{
	test();
	return 0;
}